//
//  IntegralMallInfo.swift
//  甜言蜜语
//
//  Created by yingli on 16/7/21.
//  Copyright © 2016年 wl. All rights reserved.
//

import Foundation
import SwiftyJSON
//积分商城查询
class integralMallInfo: integralMallModelInitProtocol{
    var id: Int
    var imgsrc : String
    var name : String
    var integral : String
    var malltype : String
    var money : String
    var partnum : String
    var integralorder : String
    var usermalls : String
    
    required init(json: JSON) {
        id = json["id"].intValue
        imgsrc = json["imgsrc"].stringValue
        name = json["name"].stringValue
        integral = json["integral"].stringValue
        malltype = json["malltype"].stringValue
        money = json["money"].stringValue
        partnum = json["partnum"].stringValue
        integralorder = json["integralorder"].stringValue
        usermalls = json["usermalls"].stringValue
    }
  
}
//积分商城详情
class integralMallDetailInfo:  integralMallModelInitProtocol {
    var id :Int
    var imgsrc :String
    var name :String
    var integral :String
    var malltype : Int
    var integralorder : Int
    var money : String
    var partnum : Int
    var body: String
    
    required init(json: JSON) {
      id = json["id"].intValue
      imgsrc = json["imgsrc"].stringValue
      name = json["name"].stringValue
      integral = json["integral"].stringValue
      malltype = json["malltype"].intValue
      integralorder = json["integralorder"].intValue
      money = json["money"].stringValue
      partnum = json["partnum"].intValue
      body = json["body"].stringValue
    }    
}


class checkSecureAddressInfo:  integralMallModelInitProtocol {
    var phone: String
    var code: String
    required init(json: JSON) {
        phone = json["phone"].stringValue
        code = json["code"].stringValue
    }
    
}

class integralExchangeInfo:  integralMallModelInitProtocol {

    var id: String
    var imgsrc: String
    var name: String
    var money: String
    var state: String
    var logistics: String
    var ptime: String
    var integral: String
    required init(json: JSON) {
        id = json["id"].stringValue
        imgsrc = json["imgsrc"].stringValue
        name = json["name"].stringValue
        money = json["money"].stringValue
        state = json["state"].stringValue
        logistics = json["logistics"].stringValue
        ptime = json["ptime"].stringValue
        integral = json["integral"].stringValue
        
    }
    
}






